<?php
class BuyModel extends TransModel {
	protected $_auto = array(
        array('create_time','intime',1,'callback'),
        array('update_time','time',3,'function'),
        array('mano','getNO',1,'callback'), //单号
        array('delivery_date','intime',3,'callback'),
        array('expect_date','intime',3,'callback'),
        //array('receive_time','intime',3,'callback'),
        array('three_license','getCheckBoxValue',3,'callback'),
        array('analysis_sheet','getCheckBoxValue',3,'callback'),
        array('sign_contract','getCheckBoxValue',3,'callback'),
        array('invoice','getCheckBoxValue',3,'callback'),
        array('shipping_notice','getCheckBoxValue',3,'callback'),
    );

    protected $_validate = array(
		//array('supplier_id','require','必须选择供应商！'), //默认情况下用正则进行验证
		array('product_id','require','产品必须！'), //默认情况下用正则进行验证
		array('number','require','数量必须！'), //默认情况下用正则进行验证
	);

	
}
?>
